'use strict';

const Controller = require('egg').Controller;

class UserController extends Controller {
  async info() {
    const { ctx } = this;
    const userId = ctx.params.id;
    const users = await ctx.service.user.find(userId);
    ctx.body = 'hi, egg\'s user: ' + users[0].Name;
  }
}

module.exports = UserController;
